/**
 * 
 */
package com.witframework.baseapp.security;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import org.javalid.annotations.validation.DateCheck;
import org.javalid.annotations.validation.MaxLength;
import org.javalid.annotations.validation.NotEmpty;

import com.witframework.core.BaseEntity;
import com.witframework.core.annotations.Wit;

/**
 * @author wuxinyang Jun 18, 2009 10:48:39 AM
 */
public class BaseUser extends BaseEntity{
	@MaxLength(length = 60)	@NotEmpty
	private String username;
	
	@Wit(cnname="姓名")@MaxLength(length= 60)
	private String name;
	
	@MaxLength(length = 40)	@NotEmpty
	private String password;
	
	@MaxLength(length = 40)
	private String email;
	@MaxLength(length= 32)
	private String supervisorId;
	@MaxLength(length = 40)
	private String phone;
	@MaxLength(length = 40)
	private String phone2;
	@MaxLength(length = 40)
	private String fax;	
	@Wit(cnname="姓别",description="男女")
	private String sex;
	@DateCheck(mode=DateCheck.MODE_LESS_THAN)
	private Date birthday;	
	private String orgId;
	private String orgName;
	private String dataarea;
	private String description;	
	@Wit(cnname="已删除?",description="是否已删除，1：是，其他：否")	
	private String isdelete="N";	
	private Set userRoleses=new HashSet(0);
	
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getSupervisorId() {
		return supervisorId;
	}
	public void setSupervisorId(String supervisorId) {
		this.supervisorId = supervisorId;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getPhone2() {
		return phone2;
	}
	public void setPhone2(String phone2) {
		this.phone2 = phone2;
	}
	public String getFax() {
		return fax;
	}
	public void setFax(String fax) {
		this.fax = fax;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public Date getBirthday() {
		return birthday;
	}
	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
	public String getOrgId() {
		return orgId;
	}
	public void setOrgId(String orgid) {
		this.orgId = orgid;
	}
	public String getOrgName() {
		return orgName;
	}
	public void setOrgName(String orgname) {
		this.orgName = orgname;
	}
	public String getDataarea() {
		return dataarea;
	}
	public void setDataarea(String dataarea) {
		this.dataarea = dataarea;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getIsdelete() {
		return isdelete;
	}
	public void setIsdelete(String isdelete) {
		this.isdelete = isdelete;
	}
	public Set getUserRoleses() {
		return userRoleses;
	}
	public void setUserRoleses(Set userRoleses) {
		this.userRoleses = userRoleses;
	}	
	
}
